package cn.iocoder.yudao.module.of.dal.mysql.taskapproval;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.of.dal.dataobject.taskapprovals.TaskApprovalDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.of.controller.admin.taskapprovals.vo.*;

/**
 * 任务审批(下发) Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface TaskApprovalMapper extends BaseMapperX<TaskApprovalDO> {

    /*default PageResult<TaskApprovalDO> selectPage(TaskApprovalPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<TaskApprovalDO>()
                .eqIfPresent(TaskApprovalDO::getTaskId, reqVO.getTaskId())
                .eqIfPresent(TaskApprovalDO::getApprovalStatus, reqVO.getApprovalStatus())
                .eqIfPresent(TaskApprovalDO::getApprovalUserId, reqVO.getApprovalUserId())
                .eqIfPresent(TaskApprovalDO::getApprovalOpinion, reqVO.getApprovalOpinion())
                .orderByDesc(TaskApprovalDO::getId));
    }*/

}